package com.cyx.spring.io.test2;

import com.cyx.spring.annotation.Autowired;
import com.cyx.spring.annotation.Component;
import com.cyx.spring.annotation.Value;
import com.cyx.spring.io.test1.A1;
import lombok.Getter;
import lombok.Setter;

/**
 * B
 *
 * @author yongxiang
 * @date 2024/10/22 14:37
 * @desc
 */
@Component("test")
@Getter
@Setter
public class B1 {

    @Value("${com.test:12e21}")
    private String b1;

    private A1 a1;

    public B1(@Autowired A1 a1) {
        this.a1 = a1;
    }
}
